package com.epalmpay.service.datareport.impl;

import com.epalmpay.mapper.TradeOfflineMapper;
import com.epalmpay.mapper.TradeWithdrawMapper;
import com.epalmpay.service.datareport.IWithdrawDataReportService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/18.
 */
@Service("withdrawDataReportService")
public class WithdrawDataReportServiceImpl implements IWithdrawDataReportService {

    @Resource
    private TradeWithdrawMapper tradeWithdrawMapper;

    @Resource
    private TradeOfflineMapper tradeOfflineMapper;

    @Override
    public List<Map<String, Object>> getAccountMonthList(Map map) throws Exception {
        return tradeWithdrawMapper.selectWithdrawByMonth(map);
    }

    @Override
    public List<Map<String, Object>> getAccountDayList(Map map) throws Exception {
        return tradeWithdrawMapper.selectWithdrawByDay(map);
    }

    @Override
    public List<Map<String, Object>> getAccountList(Map map) throws Exception {
        return tradeWithdrawMapper.selectWithdrawDetailByMonth(map);
    }

    @Override
    public List<Map<String, Object>> getMemberMonthList(Map map) throws Exception {
        return tradeOfflineMapper.selectWithdrawByMonth(map);
    }

    @Override
    public List<Map<String, Object>> getMemberDayList(Map map) throws Exception {
        return tradeOfflineMapper.selectWithdrawByDay(map);
    }

    @Override
    public List<Map<String, Object>> getMemberDetailMonthList(Map map) throws Exception {
        return tradeOfflineMapper.selectWithdrawDetailByMonth(map);
    }
}
